package com.scau402.system1.domain.vo;

import com.scau402.common.annotation.Excel;
import com.scau402.common.annotation.Excels;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WmsOutboundOrderAndDetailVO {

    @Excels({
            @Excel(name = "出库类型",targetAttr = "orderType",readConverterExp = "0=销售出库,1=借货出库,2=还货出库,3=加工出库",needMerge = true),
            @Excel(name = "出库单编号",targetAttr = "orderCode",width = 25,needMerge = true),
            @Excel(name = "订单批次",targetAttr = "orderBatch",needMerge = true),
            @Excel(name = "订单日期",targetAttr = "orderDate",width = 30,dateFormat = "yyyy-MM-dd HH:mm:ss",needMerge = true),
            @Excel(name = "有效期",targetAttr = "validDate",width = 30,dateFormat = "yyyy-MM-dd HH:mm:ss",needMerge = true),
            @Excel(name = "创建者",targetAttr = "createBy",needMerge = true),
            @Excel(name = "销售结算比例",targetAttr = "settlementRatio",needMerge = true),
            @Excel(name = "出借天数",targetAttr = "lendDays",needMerge = true),
            @Excel(name = "更新者",targetAttr = "updateBy",needMerge = true),
//            @Excel(name = "状态",targetAttr = "status",needMerge = true,readConverterExp = "0=待到货,1=待卸货,2=待分拣,3=已分拣,4=已合并,5=已出库"),
            @Excel(name = "备注",targetAttr = "remark",width = 30,needMerge = true),
            @Excel(name = "创建时间",targetAttr = "createTime",width = 30,dateFormat = "yyyy-MM-dd HH:mm:ss",needMerge = true),
            @Excel(name = "更新时间",targetAttr = "updateTime",width = 30,dateFormat = "yyyy-MM-dd HH:mm:ss",needMerge = true),
            @Excel(name = "出库总数",targetAttr = "outboundSumCount",needMerge = true),
            @Excel(name = "仓库名称",targetAttr = "warehouseName",needMerge = true),
            @Excel(name = "客户名称",targetAttr = "clientName",needMerge = true),
            @Excel(name = "供应商名称",targetAttr = "supplierName",needMerge = true)
    })
    private WmsOutboundOrderVO wmsOutboundOrderVo;

    @Excel(name = "出库单详情信息")
    private List<WmsOutboundOrderDetailVO> detailVOS;
 }
